package net.zoneland.zrdp.common.utils.poi;

public class CellRange {
    // 开始行
    private int firstRow;
    // 结束行
    private int endRow;
    // 开始列
    private int firstCol;
    // 结束列
    private int endCol;

    public CellRange(int firstRow, int endRow, int firstCol, int endCol) {
        this.firstRow = firstRow;
        this.endRow = endRow;
        this.firstCol = firstCol;
        this.endCol = endCol;
    }

    // Getter methods
    public int getFirstRow() {
        return firstRow;
    }

    public int getEndRow() {
        return endRow;
    }

    public int getFirstCol() {
        return firstCol;
    }

    public int getEndCol() {
        return endCol;
    }

    // Setter methods (if needed)
    public void setFirstRow(int firstRow) {
        this.firstRow = firstRow;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }

    public void setFirstCol(int firstCol) {
        this.firstCol = firstCol;
    }

    public void setEndCol(int endCol) {
        this.endCol = endCol;
    }

    // Optionally, you can also override methods like `toString`, `equals`, and `hashCode`.
}
